package com.infoyoung.firework.service.impl;

import com.infoyoung.firework.dao.IFireworkTagDao;
import com.infoyoung.firework.service.IFireworkTagService;
import com.litt.core.page.IPageList;
import com.litt.core.page.PagePoParam;

/**
 * <b>标题：</b>烟花管理service实现.
 * <pre><b>描述</b>
 *    烟花管理
 * </pre>
 * 
 * @author caiyuan
 * @since 2008-6-13
 * @version 1.0
 *
 */
public class FireworkTagServiceimpl implements IFireworkTagService 
{
	private IFireworkTagDao fireworkTagDao;

	/**
	 * 根据类型统计数量
	 * @return 统计数量
	 */
	public int loadCountByDataType(Long dataType)
	{
		return fireworkTagDao.countByDataType(dataType);
	}

	/**
	 * 分页查询.
	 * 
	 * @param pagePoParam 查询参数
	 * @return IPageList IPageList对象
	 */
	public IPageList listByPage(PagePoParam pagePoParam)
	{
		return fireworkTagDao.listByPage(pagePoParam);
	}

	/**
	 * @param fireworkTagDao the fireworkTagDao to set
	 */
	public void setFireworkTagDao(IFireworkTagDao fireworkTagDao) {
		this.fireworkTagDao = fireworkTagDao;
	}

}